<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/vue.js"></script>
</head>
<body>

<script>
    var user = { userName : "张思睿" };
    var obj = {};
    Object.defineProperty(obj, "name", {
        get() {
            return user.userName;
        },
        set(value) {
            user.userName = value;
        }
    })
</script>
</body>
</html>